package com.hzc.springchan.util;

import java.util.HashMap;
import java.util.Map;

/**
 * mybatis工具类
 * @author chen990627
 * @date 2022/09/07
 */

public class CommonUtils {

    private CommonUtils() {
    }

    public static Map toMap(Object... args) {
        int len = args.length;
        Map<String, Object> map = new HashMap(len);
        for (int idx = 0; idx < len; idx++) {
            map.put((String) args[idx], args[++idx]);
        }
        return map;
    }
}
